Payment Methods Biz API

(0 reviews)

POST-paymentMethod (Digital to SF)

POST

This operation allows to create a payment method

Request

This section defines all the possible data structures sent by the client when consuming the method.

URL PARAMS

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (PR) identifying the business unit.Y

Security Headers

nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
nametypedescriptionrequired
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.N

Body

Request Body for PR

{
    "token": "cGF5bWVudG1ldGhvZF9jY181a25obmtzZg",
    "account": [
        {
            "id": "31516278-31514752",
            "@type": "BillingAccount",
            "relatedParty": [
                {
                    "id": "12401231232",
                    "@type": "msisdn"
                }
            ]
        }
    ],
    "relatedParty": [
        {
            "name": "BrainTreeToken",
            "@type": "paymentGatewayType"
        },
        {
            "@type": "channel",
            "name": "Digital"
        },
        {
            "@type": "restrictOrder",
            "name": "true"
        }
    ]
}

Definitions

Each of the request parameters is detailed.

nametypedescriptionrequiredpossible values
tokenstringBraintree tokenYcGF5bWVudG1ldGhvZF9jY19i
accountarrayY
account.idstringValue of Billing Account Number Conditional mandatory. either Billing Account Number or MSISDN should be passedY*BANXXXX-CANYYY
account.@typestringtype of account.here it is Billing AccountNBillingAccount
account.relatedPartyarrayY*
account.relatedParty.idstringValue of MSISDN Conditional mandatory. either Billing Account Number or MSISDN should be passedY*649824098
account.relatedParty.@typestringtype is MSISDNNmsisdn
relatedPartyarrayY
relatedParty.namestringName of the relatedPartyYBrainTreeToken, Digital/IVR
relatedParty.@typestringType of the relatedPartyYpaymentGatewayType, channel

Response

######

Response

In this section all the possible data structures received by the client at the moment of responding the method are defined.

Possible response success

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

[ 201 ]

OK - POST request processed successfully, response body contains an entity corresponding to the requested resource.

{
    "description": "payment method create request received"
}

Reviews